package car.aistar.controller;

import car.aistar.entity.Userlogin;
import car.aistar.service.UserloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * (Userlogin)表控制层
 *
 * @author makejava
 * @since 2020-09-30 20:58:09
 */
@RestController
@RequestMapping("userlogin")
public class UserloginController {
    /**
     * 服务对象
     */
    @Autowired
    private UserloginService userloginService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Userlogin selectOne(Long id) {
        return this.userloginService.queryById(id);
    }

}